package com.example.springboot.utils.springutils;

import com.example.springboot.bean.Department;
import org.springframework.util.SerializationUtils;

import java.io.Serializable;

/**
 * @author chenzhangkun
 * @ClassName SerializationUtilDemo
 * @description: TODO
 * @date 2024年02月02日
 */
public class SerializationUtilDemo {
    public static void main(String[] args) {


        byte[] serialize = SerializationUtils.serialize(new Ser());

        Object deserialize = SerializationUtils.deserialize(serialize);

        System.out.println(deserialize);

    }
    private static class Ser implements Serializable {

    }
}
